package ar.utn.frba.ia.IA_TP1.mapas;

public class Pais {
	public String nombre;
	public Integer top;
	public Integer left;
	public Mapa.Colores color;
	public int index;

	public Pais(Integer index, String string, Integer left, Integer top) {
		this.nombre = string;
		this.left=left;
		this.top=top;
		this.index = index;
	}


	public String getNombre() {
		return nombre;
	}
	
	
	public String generateJavascript() {
		return ""
				+ "document.getElementById('"+index+"').style='top:"+top+"%;left:"+left+"%;background-color:"+color+";';"
				+ "document.getElementById('"+index+"').innerHTML='"+nombre+"';"
				+ "";
		
	}
	
}
